const a = async function (
  params,
  { transfer, dataId, memory, origin },
  { $grid, dayjs, dc: { http, store }, xe: { clone, get, omit } }
) {
  console.log("load grid data: ", $grid, params, dataId);
  const post = params;
  const form = clone(get(origin, "1793843000839815170", {}), true);
  const data = { ...post, ...omit(form ?? {}, ["condition", "dataCondition"]) };
  const conditionList = get(memory, "condition", []);
  const conditions = form.condition
    ? conditionList
        .filter(function ({ id }) {
          return form.condition.indexOf(id) > -1;
        })
        .map(function ({ condition }) {
          return condition;
        })
    : [];
  if (conditions.length) {
    data["condition"] = conditions.join("");
  }
  conditionList.map(({ condition }) => {
    const fields = condition.slice(0, -1).split(",");
    if (conditions.indexOf(condition) > -1) {
      fields.map((field) => $grid.showColumn($grid.getColumnByField(field)));
    } else {
      fields.map((field) => $grid.hideColumn($grid.getColumnByField(field)));
    }
  });
  data.year = dayjs(store.get("user", "date")).format("YYYY");
  console.log("custom load: ", conditions, data, form);
  const { data: items, total } = await http.post({
    timeout: 20 * 1000,
    url: "/nyk/search/listNczjNew",
    data,
  });
  console.log("load: ", data, items, total);
  return { items, total };
};